package com.situ.mall.service;

import com.situ.mall.entity.PageView;
import com.situ.mall.entity.Result;
import com.situ.mall.entity.Shipping;
import com.situ.mall.entity.Suggest;
import com.situ.mall.entity.User;

public interface IUserService {
	public User login(String username, String password);

	public User selectByUserId(Integer id);

	public boolean updateUserInfo(User user);

	public Result selectByPage(Integer page, Integer limit, User user);

	//注册
	public boolean register(User user);
	
	//后台添加用户
	public boolean insertUser(User user);

	//后台删除用户
	public boolean deleteById(Integer id);

	//后台修改用户信息时先查到用户信息
	public User getUpdateUserInfo(Integer userId);

	public boolean updateUser(User user);

	public User selectByUserName(String username, Integer userId);

	public boolean suggest(Suggest suggest);

	public User registerByUserName(String username);

	public boolean deleteAll(Integer[] ids);

	public int updatePageView(Integer id, PageView pageView);

	public PageView getPageViewById(Integer id);
	
}
